package com.example.myblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 叶兴
 * @since 2022-09-29
 */
@Data
@TableName("likes")
public class Like implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 点赞用户
     */
    @TableField("user_name")
    private String userName;

    /**
     * 点赞文章
     */
    @TableField("blog_id")
    private String blogId;

    /**
     * 被点赞者
     */
    @TableField("comment_id")
    private Integer commentId;


}
